package cn.good.user.controller;

import cn.good.service.SmsCodeService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private SmsCodeService smsCodeService;

    @ResponseBody
    @RequestMapping(value = "/api",produces = "application/json",method = RequestMethod.POST)
    public String test(){

        smsCodeService.smsCodeSend("15167987602","88888888");

        return "测试数据";
    }
}
